//
//  MKUITabBarItemContainer.h
//  MKUI
//	页签容器视图
//  Created by sushangjin on 16/3/29.
//  Copyright © 2016年 sushangjin. All rights reserved.
//

#import <UIKit/UIKit.h>
@class MKUITabBarController;

NS_ASSUME_NONNULL_BEGIN
@interface MKUITabBarItemContainer : UIView
@property(nonatomic,weak) MKUITabBarController *tabBarController;//弱引用tab控制器
@property(nonatomic,strong,nullable) NSArray<__kindof UITabBarItem *> *items;
@property(nonatomic,strong,nullable) __kindof UITabBarItem *selectedItem;
@property(nonatomic,assign) NSInteger selectedIndex;//动改变并不会刷新UI，需要调用reloadData等刷新UI的方法

//响应content滚动容器的滚动事件
- (void)didScrollFromIndex:(NSInteger)fromIndex to:(NSInteger)toIndex withProgress:(CGFloat)progress;
//content容器是否能滚动切换内容
- (BOOL)contentContainerCanScrollContent;

- (void)reloadData;//刷新UI
//刷新UI，并显示动画效果
- (void)reloadDataWithAnimated:(BOOL)animated;

//改变选中项，并刷新UI
- (void)setSelectedIndex:(NSInteger)index animated:(BOOL)animated;
@end
NS_ASSUME_NONNULL_END
